package dao;

import entity.Book;

import java.sql.SQLException;
import java.util.List;

/**
 * User: key
 * ClassName:BookDao
 * Date: 2023/5/5
 * Time: 18:49
 * description:
 */
public interface BookDao {
    int addBook(Book b) throws SQLException;

    Book getOneById(int id) throws SQLException;

    int delBook(int id) throws SQLException;

    Long getCount() throws SQLException;

    List<Book> getByPage(int pageNum, int pageSize) throws SQLException;

    List<Book> getAll() throws SQLException;
}
